import http from '../utils/http'

// 获取评论列表
export const getCommentListApi = (params) => {
  // return http.get('/api/admin/getcomment', { params });
  return http({
    url: '/api/admin/getcomment',
    method: 'get',
    params
  });
};

// 删除评论
export const delCommentApi = (id) => {
  // return http.get(`/api/admin/delcomment/${id}`);
  return http({
    url: `/api/admin/delcomment/${id}`,
    method: 'get'
  });
};